package org.kl.bf.repository.basic;

import java.util.List;

import org.kl.bf.entity.basic.CodeValues;
import org.kl.bf.entity.basic.DataDetail;
import org.kl.bf.repository.BasicRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

public interface DataDetailDao extends BasicRepository<DataDetail, String>, JpaSpecificationExecutor<DataDetail> {
	List<DataDetail> findByDataTypeCodeName(String codeName);

	@Query("select distinct d.dataType from DataDetail d ")
	List<CodeValues> findALLCodeValues();
}
